<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="com.smc.security.*" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><decorator:title default="secure medical chat"/></title>
		<link href="style/main.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="js/jquery.js"></script>
		<decorator:head />
	</head>
	<body>
		<div class="page">
			
			<div class="header">
				<div class="logo"></div>
				<div style="float: right">
					<%
						if (SecurityContextHolder.getAuthentication(request.getSession()) != null && SecurityContextHolder.getAuthentication(request.getSession()).isAuthenticated()) {
					%>
							<a href="logout.shtml">Logout</a>		
					<%	} else {
					%>
							<a href="toRegister.shtml">Register</a> &nbsp;&nbsp;
							<a href="toLogin.shtml">Login</a>
					<%
						}
					%>
				</div>
			</div>

			<div class="content">
				<decorator:body>
				</decorator:body>
			</div>
			<div class="footer">
				Copyright Received by secure medical chart 
			</div>
		</div>
	</body>
</html>